const options = {
    method: 'POST',
    headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
    body: '{"model":"BAAI/bge-large-zh-v1.5","input":"Silicon flow embedding online: fast, affordable, and high-quality embedding services. come try it out!","encoding_format":"float"}'
  };
  
  fetch('https://api.siliconflow.cn/v1/embeddings', options)
    .then(response => response.json())
    .then(response => console.log(response))
    .catch(err => console.error(err));